home *** CD-ROM | disk | FTP | other *** search
- on showHands
- NumMems = the number of castMembers of castLib "internal"
- aLib = "internal"
- indent = " "
- outString = RETURN
- put "Handlers in <PromptMovie>..." & RETURN after outString
- repeat with x = 1 to NumMems
- if member(x, aLib).type <> #script then
- next repeat
- end if
- if member(x, aLib).scriptType <> #movie then
- next repeat
- end if
- rawText = member(x, aLib).scriptText
- repeat while rawText <> EMPTY
- thisLine = line 1 of rawText
- delete line 1 of rawText
- if emptyString(thisLine) then
- next repeat
- end if
- if word 1 of thisLine = "on" then
- numWords = the number of words in thisLine
- tempString = indent
- repeat with y = 2 to numWords
- put word y of thisLine after tempString
- if y <> numWords then
- put " " after tempString
- end if
- end repeat
- put tempString & RETURN after outString
- end if
- end repeat
- end repeat
- return outString
- end
-